package com.my.chapter5;

public class practice21 {
    public static void main(String[] args) {
        for(Money m:Money.values()){
            System.out.println(m+", ordinal "+m.ordinal());
        }
    }
    public enum Money{
        one,two,five,ten,twenty,fifty,hundred
    }
}

